﻿<BarcodeReader ScanType="@ScanType.Image" OnResult="@OnImageResult" OnError="@OnImageError" />

@code {
    private Task OnImageResult(string barcode)
    {
        //Trace2?.Log($"扫描到条码 {barcode}");
        return Task.CompletedTask;
    }

    private Task OnImageError(string err)
    {
        //Trace2?.Log($"发生错误 {err}");
        return Task.CompletedTask;
    }
}